let express=require('express')
let router=express.Router()

const userHandler = require('../router_handler/user.js')

const expressJoi = require('@escook/express-joi')
const {reg_login_schema} = require('../schema/user.js')

router.post('/reguser',expressJoi(reg_login_schema),userHandler.regUser)

router.post('/login',expressJoi(reg_login_schema),userHandler.login)

module.exports= router